<template>
  <el-input v-bind="inputProps" v-on="inputEvents">
    <!-- 插槽内容 -->
    <template v-for="(_, slot) in $slots" #[slot]="scope">
      <slot :name="slot" v-bind="scope || {}"></slot>
    </template>
  </el-input>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue';

export default defineComponent({
  name: 'BInput',
  props: {
    inputProps: {
      type: Object as PropType<Record<string, any>>,
      default: () => ({})
    },
    inputEvents: {
      type: Object as PropType<Record<string, any>>,
      default: () => ({})
    }
  }
});
</script>
